import axios from '../utils/myRequest';

let getList = function (params) {
    return axios({
        url: "/classify/get-classify",
        method: "get",
        params
    })
}

let addList = function (data) {
    return axios({
        url:"/classify/add-classify",
        method: "post",
        data
    })
}

let editList = function (data) {
    return axios({
        url:"/classify/update-classify",
        method: "post",
        data
    })
}

let deleteList = function (params) {
    return axios({
        url: "/classify/delete-classify",
        methods: "get",
        params
    })
}

export {
    getList,
    addList,
    editList,
    deleteList
}